package com.webbietek.dataqueryable;

import java.util.HashMap;
import java.util.List;

/**
 * 
 * @author Ryan Boone
 *
 */
public interface Queryable {
	
	String getTable();
	void setTable(String table);
	
	String getDatabase();
	void setDatabase(String database);
	
	void addField(String table, String fieldName);
	List<String> getFields();
	
	HashMap<String,String> getValues();
	void addValue(String table, String fieldName, String value);
	
	/**
	 * creates a string that represents a SQL query
	 * @return the SQL query as a string
	 */
	String getQuery();
	
	/**
	 * creates a string that represents a SQL query
	 * @param database
	 * @param table
	 * @param criteria
	 * @param value
	 * @return the SQL query as a string
	 */
	String getQuery(String database, String table, String criteria, String value);
}
